import{d,e as m,a,P as p,Q as _,R as e,$ as t,X as r,K as g,bt as u,a2 as h,a5 as v,a8 as x,a9 as f}from"./elementPlusModules.js";import{_ as b}from"./index.js";import"./lodashModules.js";import"./vxeTableModules.js";const i=o=>(x("data-v-41555e96"),o=o(),f(),o),k={class:"demo-image__error"},y={class:"block"},w=i(()=>e("span",{class:"demonstration"},"Default",-1)),C={class:"block"},I=i(()=>e("span",{class:"demonstration"},"Custom",-1)),z={class:"image-slot"},S=d({__name:"Error",setup(o){const l=m(`
<template>
  <div class="demo-image__error">
    <div class="block">
      <span class="demonstration">Default</span>
      <el-image />
    </div>
    <div class="block">
      <span class="demonstration">Custom</span>
      <el-image>
        <template #error>
          <div class="image-slot">
            <el-icon><icon-picture /></el-icon>
          </div>
        </template>
      </el-image>
    </div>
  </div>
</template>

<script setup lang="ts">
import { Picture as IconPicture } from '@element-plus/icons-vue'
<\/script>

<style scoped>
.demo-image__error .block {
  padding: 30px 0;
  text-align: center;
  border-right: solid 1px var(--el-border-color);
  display: inline-block;
  width: 49%;
  box-sizing: border-box;
  vertical-align: top;
}
.demo-image__error .demonstration {
  display: block;
  color: var(--el-text-color-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}
.demo-image__error .el-image {
  padding: 0 5px;
  max-width: 300px;
  max-height: 200px;
  width: 100%;
  height: 200px;
}

.demo-image__error .image-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--el-fill-color-light);
  color: var(--el-text-color-secondary);
  font-size: 30px;
}
.demo-image__error .image-slot .el-icon {
  font-size: 30px;
}
</style>
`);return(n,B)=>{const s=a("el-image"),c=a("el-icon");return p(),_(v,null,[e("div",k,[e("div",y,[w,t(s)]),e("div",C,[I,t(s,null,{error:r(()=>[e("div",z,[t(c,null,{default:r(()=>[t(g(u))]),_:1})])]),_:1})])]),h(n.$slots,"default",{html:l.value},void 0,!0)],64)}}}),V=b(S,[["__scopeId","data-v-41555e96"]]);export{V as default};
